No, neither the DO
nor the LOOP
(nor the statements
between them) say how many times to repeat.
The statements between the DO
and the LOOP
will
be repeated endlessly, or until the user hits CONTROL-BREAK.
The statements between the DO
and LOOP
are called
the body of the loop.
So you can say that for the example program, the
loop body is repeated endlessly.
Soon you will learn how to write loops that do not repeat endlessly. Sometimes, however, endlessly repeating loops are useful.
Say that you are in charge of putting price tags on new merchandise in a clothing store. A new shipment of several hundred items has just arrived. You have a list that tells you the wholesale price of each item. The markup in your store is 50 percent, so the price tag should be 1.5 times the wholesale price. You would like a program that asks you for the wholesale price of an item and then prints the retail price, and keeps doing that over and over (since you have hundreds of items).
In rough outline, what do you suppose the program looks like?